1. Home
  2. Search

Tip: use "exact phrase", exclude a word with -word, or filter by subject and exam below.

More filters
Question type
Must have
Search in

1,432 MCQs for “numpy org doc stable reference generated” (0.08 s) · showing MCQs that match some of your words

A presigned S3 URL was generated using credentials from an IAM role that is deleted shortly afterwards. What happens when the URL is used before its expiry time?

  1. It works until expiry, since the signature alone authorises the request
  2. It works only for HEAD requests, because GET needs live credentials
  3. It fails only if the object's ETag changes after the URL was generated
  4. It fails, because the signing credentials must still be valid when used Correct answer
MCQSEXAM Read explanation

A lambda captures a local int by reference with [&] and is stored in a std::function that outlives the enclosing function. What happens when it is invoked later?

  1. It reads a valid value, because std::function extends the lifetime of captures
  2. It reads a dangling reference, because the local died with its stack frame Correct answer
  3. It reads the value the local held, because capture by reference copies on escape
  4. It throws std::bad_function_call, since the captured reference has expired
MCQSEXAM Read explanation